<!doctype html>
<html class="no-js">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>Amaze UI Admin table Examples</title>
  <meta name="description" content="这是一个 table 页面">
  <meta name="keywords" content="table">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp" />
  <link rel="icon" type="image/png" href="/Public/assets/i/favicon.png">
  <link rel="apple-touch-icon-precomposed" href="/Public/assets/i/app-icon72x72@2x.png">
  <meta name="apple-mobile-web-app-title" content="Amaze UI" />
  <link rel="stylesheet" href="/Public/assets/css/amazeui.min.css"/>
  <link rel="stylesheet" href="/Public/assets/css/admin.css">
  <link rel="stylesheet" href="/Public/assets/css/demo.css">
<style>
	.am-topbar-form {
		padding-bottom:20px;
	}
</style>
</head>
<body>
<!--[if lte IE 9]>
<p class="browsehappy">你正在使用<strong>过时</strong>的浏览器，Amaze UI 暂不支持。 请 <a href="http://browsehappy.com/" target="_blank">升级浏览器</a>
  以获得更好的体验！</p>
<![endif]-->

<include file="./Application/Admin/View/Share/header.html"/>

<div class="am-cf admin-main">
  <!-- sidebar start -->
    <include file="./Application/Admin/View/Share/left.html"/>

  <!-- sidebar end -->

  <!-- content start -->
  <div class="admin-content">
    <div class="admin-content-body">
      <div class="am-cf am-padding am-padding-bottom-0">
        <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">博文列表</strong> / <small>Aticle Table</small></div>
      </div>

      <hr>

      <div class="am-g">
        <div class="am-u-sm-12 am-u-md-6">
          <div class="am-btn-toolbar">
            <div class="am-btn-group am-btn-group-xs">
              <button onclick=window.location.href="/Admin/Article/add.html" type="button" class="am-btn am-btn-default" ><span class="am-icon-plus"></span> 新增</button>
              <button type="button" class="am-btn am-btn-default"><span class="am-icon-trash-o"></span> 删除</button>
            </div>
          </div>
        </div>
        
      <form class="am-topbar-form am-topbar-left am-form-inline am-topbar-right" role="search" action="/admin/article/table.html" method="get">
		<div class="am-form-group">
			<input type="text" class="am-form-field am-input-sm" name="keyword" placeholder="搜索文章">
		</div>
		<button type="submit" class="am-btn am-btn-default am-btn-sm">搜索</button>
	  </form>
      </div>

      <div class="am-g">
        <div class="am-u-sm-12">
          <div class="am-form">
            <table class="am-table am-table-bordered am-table-radius am-table-striped">
              <thead>
              <tr>
				<th class="table-check"><input type="checkbox" id="check"/></th>
				<th class="table-id">ID</th>
				<th class="table-title">主题图片</th>
				<th class="table-title">标题</th>
				<th class="table-title">分类</th>
				<th class="table-type">作者</th>
				<th class="table-type">访问量</th>
				<th class="table-author am-hide-sm-only">修改日期</th>
				<th class="table-set">操作</th>
              </tr>
              </thead>
              <tbody>
				  <volist name="data" id="vo">
              <tr>
                <td><input type="checkbox" class="check" /></td>
                <td><{$i}></td>
                <td class="am-hide-sm-only"><img src="<{$vo.img_src}>" style="width:80px;"/></td>
                <td style="width:180px;"><a href="/Home/Article/view?id=<{$vo.id}>"><{$vo.title}></a></td>
				<td class="am-hide-sm-only"><{$vo.type}></td>
                <td class="am-hide-sm-only"><{$vo.author}></td>
                <td class="am-hide-sm-only"><{$vo.click}></td>
                <td class="am-hide-sm-only"><{$vo.addtime|date="Y-m-d  H:i:s",###}></td>
                <td>
                  <div class="am-btn-toolbar">
                    <div class="am-btn-group am-btn-group-xs">
					  <a href="/Admin/Article/table?id=<{$vo.id}>&act=t_lunbo"><button class="am-btn am-btn-default am-btn-xs am-text-secondary"><span class="am-icon-pencil-square-o"></span> 加入轮播</button></a>
                      <a href="/Admin/Article/add?id=<{$vo.id}>"><button class="am-btn am-btn-default am-btn-xs am-text-secondary"><span class="am-icon-pencil-square-o"></span> 编辑</button></a>
                      <a href="/Admin/Article/table?id=<{$vo.id}>&act=t_del"><button class="am-btn am-btn-default am-btn-xs am-text-danger am-hide-sm-only"><span class="am-icon-trash-o"></span> 删除</button></a>
                    </div>
                  </div>
                </td>
              </tr>
              </volist>
              </tbody>
            </table>
            <div class="page1">
				<{$page}>
			</div>
          </div>
        </div>
      </div>
    </div>

    <footer class="admin-content-footer">
      <hr>
      <p class="am-padding-left">© 2014 AllMobilize, Inc. Licensed under MIT license.</p>
    </footer>

  </div>
  <!-- content end -->
</div>

<a href="#" class="am-icon-btn am-icon-th-list am-show-sm-only admin-menu" data-am-offcanvas="{target: '#admin-offcanvas'}"></a>

<footer>
  <hr>
  <p class="am-padding-left">© 2014 AllMobilize, Inc. Licensed under MIT license.</p>
</footer>

<!--[if lt IE 9]>
<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="assets/js/amazeui.ie8polyfill.min.js"></script>
<![endif]-->

<!--[if (gte IE 9)|!(IE)]><!-->
<script src="/Public/assets/js/jquery.min.js"></script>
<!--<![endif]-->
<script src="/Public/assets/js/amazeui.min.js"></script>
<script src="/Public/assets/js/app.js"></script>
<script>
	var obj=$('#check').val('true');
	$('#check').click(function(){
		if(obj.val()!="false"){
			$('.check').prop("checked",true);
			obj=$('#check').val('false');
		}else{
			$('.check').prop("checked",false);
			obj=$('#check').val('ture');
		}
	});
	
</script>
</body>
</html>
